/* 
 * File:   HashMin.h
 * Author: fliaali
 *
 * Created on 27 de octubre de 2013, 23:02
 */

#ifndef HASHMIN_H
#define	HASHMIN_H

#include <string>
#include <iostream>
#include <stdio.h>
#include "stdlib.h"
#include <vector>
#include <cstring>
#include <math.h>
#include "Defines.h"
#include "Primo.h"

class HashMin{
public:
    HashMin();
    virtual ~HashMin();
    int Execute();
    int Execute(char*);
    void Save(const char*);
    unsigned long int F_Hashing_String(char* codigo);
    int F_MinHashing_N(unsigned long int codigo, int coef);
    void Destruir();
   
private:
    Primo* primo;
    unsigned int* vector;
    char* StringPadLeft(char* codigo, int padlen);
    void IntToString(int valor, int largoString, char* string);
    void Inicialzar();
};

#endif	/* HASHMIN_H */

